# 右对齐三角形

for i in range(1,5):
    b=5
    print(" "* (b-i)+"*"*i,end="\n")

# 正三角形

for i in range(1,5):
    b=5
    print(" "*(b-i),end="")
    a=i*2-1
    for c in range(a):
        print("*",end="")
    print()



# 上下颠倒正三角形

for i in range(10):
    for a in range(0,i):
        print(end=" ")
    for b in  range(i ,10-i):
        print("*",end="")
    print()


# 菱形
for i in range(9):
    for a in range(9-i):
        print(" ",end="")
    a = i*2-1
    for c in range(a):
        print("*",end="")
    print()
for i in range(15):
    for a in range(0,i):
        print(end=" ")
    for b in range(i,15-i):
        print("*",end="")

    print()


